 <?php echo $this->load->view('_elements/registratednavigation'); ?>

<div id="content">

    <div id ="sidebar">
     <?php echo $this->load->view('_elements/SettingsMenu'); ?>
     </div>

    <div id="centerbar">
        <div class="title"><?php echo $Title; ?></div>
        <div id="settingsblock" class="blockstyle profile_referral">
        	<div id="profile_referral_title"><span><?php echo T_('Refer your friends, family and colleagues to HN Books!</span> You get a $25 credit for every successful referral.')?></div>
        	<div id="profile_referral_text"><?php echo T_('Simply enter the name and email of the person you want to refer to HN Books. An email will be sent by us saying that you have recommended that they give HN Books a try.')?></div>
        	<div id="profile_referral_form">
        		<div id="profile_referral_form_title"><?php echo T_('Do You Have Someone You Want to Recommend?')?></div>
        		<?php echo form_open($this->curl . '/profile_referral', 'id="profile_referral" name="profile_referral" autocomplete="off"')?>
                <?php echo $this->validation->error_string ?>
                <div class="profile_referral_form_name_email"><?php echo $this->user_model->fields['full_name']; ?></div>
        		<?php echo form_input('full_name', $this->validation->full_name, 'class="profile_referral_form_input"')?><br />
                <div class="profile_referral_form_name_email"><?php echo $this->user_model->fields['friendemail']; ?></div>
                <?php echo form_input('friendemail', $this->validation->friendemail, 'class="profile_referral_form_input"')?>
                <input type="submit" id="register_profile_referral_refer" class="red buttonStyle" value="<?php echo T_('REFER'); ?>" name="sendToFriend" />
                <?php echo form_close()?>
        	</div>        	
        </div>
    </div>
    
 <?php echo $this->load->view('_elements/Followrefs'); ?>

</div>
